import tab from './tab'
import cache from './cache'
import modal from './modal'
import constantIpcRouters from "./ipcRouter";
import userIpc from "./userIpc";
import useAppStore from '@/store/modules/app'
export default function installPlugins(app){
  // 页签操作
  app.config.globalProperties.$tab = tab
  // 缓存对象
  app.config.globalProperties.$cache = cache
  // 模态框对象
  app.config.globalProperties.$modal = modal
  //ipc访问请求
  app.config.globalProperties.$userIpc = userIpc
  //ipc访问路由表
  app.config.globalProperties.$ipcRouters = constantIpcRouters

  app.config.globalProperties.$appStore=useAppStore()

}
